import request from '@/utils/request'

// 轮播图接口
export const homeBanner = () => {
  return request({
    url: '/home/banner'
  })
}

// 轮播图之上的商品推荐接口
export const homeCategoryHead = () => {
  return request({
    url: '/home/category/head'
  })
}
// 菜单项的品牌接口
export const homeBrand = (num) => {
  return request({
    url: `/home/brand?limit=${num}`
  })
}

// 新鲜好物接口
export const homeNew = () => {
  return request({
    url: '/home/new'
  })
}

// 人气推荐接口
export const homeHot = () => {
  return request({
    url: '/home/hot'
  })
}

// 获取商品列表接口
export const homeGoods = () => {
  return request({
    url: '/home/goods'
  })
}

// 最新专题接口
export const homeSpecial = () => {
  return request({
    url: '/home/special'
  })
}